package com.geovis.emergency.spd.config;

import com.geovis.emergency.spd.intercept.SignInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * <p>
 *
 * </p>
 *
 * @author Lonsho
 * @since 2022-10-26
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Bean
    public SignInterceptor getSignInterceptor(){
        return new SignInterceptor();
    }

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //registry.addInterceptor(getSignInterceptor()).addPathPatterns("/command/**");
    }
}
